package com.xcity.pomelo.response;

import com.xcity.game.activity.surprise7days.Surprise7DaysActivityService;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class ActivitySurprise7DaysRockResponse extends Response {
	
	public byte state; // 状态
	public int days; // 第n天
//	private short[] nums; // length=7（个位数: nums[0]，十位数：nums[1]...-1表示该位置还未摇取）
	public short num; // 摇取结果（0~9）
	public int freeTimes; // 剩余免费摇取次数
	public int costStone; // 额外摇取消耗钻石数

	public ActivitySurprise7DaysRockResponse(int serial, byte state, int days, short num, int freeTimes, int costStone) {
		super(serial);
		this.state = state;
		this.days = days >= Surprise7DaysActivityService.MAX_DAYS ? Surprise7DaysActivityService.MAX_DAYS : days;
		this.num = num;
		this.freeTimes = freeTimes;
		this.costStone = costStone;
	}
	
}
